package com.bl.student.dao.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by liangweikang on 18/2/11.
 */
@Entity
@Data
@Table(name = "TEACHER_STUDENT")
@ApiModel(value = "TeacherStudentEntity", description = "老师学生对应表")
@DynamicInsert
@DynamicUpdate
public class TeacherStudentEntity {
    @Id
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "用户id")
    @Column(name = "teacher_id")
    private String teacherId;

    @ApiModelProperty(value = "学生id")
    @Column(name = "student_id")
    private String studentId;

    @ApiModelProperty(value = "备注")
    @Column(name = "remark")
    private String remark;
}
